<include file="__THEME__/admin_header" />
<h1><a href="{:U('admin/base/contentManageAdd',array('typeid'=>$typeid))}">添加操作：添加内容记录</a></h1>
<hr><br><br>
<form>
	<input type="text" name="search" id="js_search"/> 搜索
</form>
<div style="margin-top:10px;margin-left:10px;">
	<table width="1000" height="118" cellpadding="0" cellspacing="0">
		<tr>
			<th width="40" height="20">【类型/上级类型/顶级类型】</th><th width="5" height="20">名称</th><th width="5" height="20">头像</th><th width="5" height="20">创建时间</th><th width="5" height="20">编码</th><th width="10" height="20">操作</th>
		</tr>
		<volist name="lists" id="list" key="k">	
			<tr>
			    <td width="40" height="20">【{$list['typeid']|getColumnNameById}/{$list['reid']|getColumnNameById}/{$list['topid']|getColumnNameById}】</td>
				<td width="5" height="20">{$list['name']}</td>
				<td width="5" height="20"><img src="{$list['conid']|getImgById}" width="35" height="35"/></td>
				<td width="5" height="20">{$list['ctime']|date="Y-m-d",###}</td>
				<td width="5" height="20">{$list['code']}</td>
				<td width="10" height="20"><a href="{:U('admin/base/columnContentEdit',array('conid'=>$list['conid']))}">编辑</a>&nbsp;&nbsp;<B>|</B>&nbsp;&nbsp;<a href="javascript:void(0);" onclick="content_del({$list['conid']})">删除</a>&nbsp;&nbsp;<B>|</B>&nbsp;&nbsp;<a href="{:U('admin/base/imageUpload',array('conid'=>$list['conid']))}">图片上传</a></td>
			</tr>
		</volist>
		<tr>{$show}</tr>
	</table>
</div>
<include file="__THEME__/admin_footer"/>
<script type="text/javascript">
	function examine_video(id,status){
		$.post(U('admin/base/doStatusExamine'),{"id":id,"status":status},function(res){
			if(res > 0){
				ui.success('审核成功!'); 
				location.reload();
			}else{
				ui.error('审核失败!'); 
			}
	    });
	}
	
	function son_list(id){
		$.post(U('admin/base/sonExamineList'),{"id":id,"level":2},function(res){
			$("#son_"+id).replaceWith(res);
	    });
	}
	
	function content_del(conid){
		$.post(U('admin/base/doColumnContentDel'),{"conid":conid},function(res){
			if(res>0){
				ui.success("删除成功!");
			}else{
				ui.error("删除失败!");
			}
	    });
	}
</script>